package com.sewisdom.ng.act.util.caoyt.log;

import com.sewisdom.log.ErrorLogger;
import com.sewisdom.ng.act.GGlobalVariables;
import com.sewisdom.ng.act.util.GDebug;

public class OwnLog {

	public static void println(Object obj){
		System.out.println("caoyitian print---:" + obj);
	}
	
	public static void debug(Object obj){
		GDebug.debugMessage("caoyitian print---:" + (obj == null ? null : obj.toString()));
	}
	
	public static void logExcep(boolean show, Exception e){
		ErrorLogger.getInstance().log(show, e);
	}
	
	public static void logExcep(Exception e){
		logExcep(GGlobalVariables.SHOW_EXCEPTION, e);
	}
}
